package com.wanshi.client;


import com.wanshi.client.impl.ProductsClientimpl;
import com.wanshi.entity.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-12-22
 */
@FeignClient(value="prod-server",fallback = ProductsClientimpl.class,path = "/products")
//@RequestMapping("/products")
public interface ProductsClient {



    @GetMapping("/num/{orderid}")
    public List<Products> findproductsAndNumByorderId(@PathVariable String orderid);

}

